<?php

/**
 * @package    sfDoctrineCronManagerPlugin
 * @subpackage routing
 * @author     Bob Stremel <bob.stremel@gmail.com>
 */
class sfCronManagerRouting
{
  static public function addRoutes(sfEvent $event)
  {
    $event->getSubject()->prependRoute('sf_cron_manager', new sfDoctrineRouteCollection(array(
      'name' => 'sf_cron_manager_job',
      'model' => 'sfCronManagerJob',
      'module' => 'sfCronManager',
      'prefix_path' => '/sfCronManager',
      'with_wildcard_routes' => true,
    )));
  }

}